package org.nanotek;

import java.util.Date;

import org.nanotek.util.Base;

@SuppressWarnings({ "serial"})
public class KongIdentity<ME extends Kong<String>> extends DateBase<Kong<String>> implements Kong<ME>,Base<ME>{

    private ME kong;
    private ME id;

	public KongIdentity(ME string) {
		super(new Date(System.currentTimeMillis()));
		this.kong = string;
	}


	public void setId(ME id)
    {
    	this.id = id;
    }

	@Override
	public ME getId() {
		return (ME) id;
	}


	@Override
	public ME get() {
		return kong;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		KongIdentity other = (KongIdentity) obj;
		if (kong == null) {
			if (other.kong != null)
				return false;
		} else if (!kong.equals(other.kong))
			return false;
		return true;
	}



}
